TeamsDR-Remove Customer with existing ITSP
The TeamsDR-Remove Customer with existing ITSP script does the following:
| ■ | Removes IP Group for both the Carrier and Teams legs that matches the Customer Id.. |
| ■ | Removes every dial plan rule that matches the Customer Id. |
Copy
### Script Version 1.0 ###
# Removing Customer with existing Carrier's Proxy
# Id: 5461234
#
configure voip
no ip-group where name "{{CustomerId}}-c"
no ip-group where name "{{CustomerId}}-t"
no sip-definition account where account-name "{{CustomerId}}"
{{#each SBC.DialPlanPrefixes}}
sbc dial-plan where name "{{this.DialPlanName}}"
no dial-plan-rule where name "{{../CustomerId}}"
activate
exit
{{/each}}
do write